<template>
  <div class="home-container">
    <!-- 英雄区域 -->
    <section class="hero-section">
      <div class="container">
        <div class="hero-content">
          <h1 class="hero-title">
            <span class="text-gradient">AI Agent Hub</span>
            <br>
            <span class="hero-subtitle">未来已来，AI为你而生</span>
          </h1>
          <p class="hero-description">
            探索AI的无限可能，体验最前沿的智能对话技术
            <br>
            让AI成为你的专属助手，开启智能生活新篇章
          </p>
          <div class="hero-stats">
            <div class="stat-item">
              <div class="stat-number">99.9%</div>
              <div class="stat-label">准确率</div>
            </div>
            <div class="stat-item">
              <div class="stat-number">24/7</div>
              <div class="stat-label">在线服务</div>
            </div>
            <div class="stat-item">
              <div class="stat-number">∞</div>
              <div class="stat-label">可能性</div>
            </div>
          </div>
        </div>
      </div>
      <div class="hero-background">
        <div class="floating-elements">
          <div class="floating-element" v-for="i in 6" :key="i"></div>
        </div>
      </div>
    </section>

    <!-- 应用展示区域 -->
    <section class="apps-section">
      <div class="container">
        <h2 class="section-title text-center">
          <span class="text-gradient">AI应用</span>
          <span class="title-accent">精选</span>
        </h2>
        <div class="apps-grid">
          <div class="app-card card glow-effect" @click="$router.push('/love-master')">
            <div class="app-icon">💕</div>
            <h3 class="app-title">AI恋爱大师</h3>
            <p class="app-description">
              专业的恋爱咨询AI助手，为你解答情感困惑，提供恋爱建议和情感分析
            </p>
            <div class="app-features">
              <span class="feature-tag">情感分析</span>
              <span class="feature-tag">恋爱建议</span>
              <span class="feature-tag">心理疏导</span>
            </div>
            <div class="app-cta">
              <span class="cta-text">开始对话</span>
              <span class="cta-arrow">→</span>
            </div>
          </div>

          <div class="app-card card glow-effect" @click="$router.push('/super-agent')">
            <div class="app-icon">🤖</div>
            <h3 class="app-title">AI超级智能体</h3>
            <p class="app-description">
              全能型AI助手，具备强大的推理能力和多领域知识，解决各种复杂问题
            </p>
            <div class="app-features">
              <span class="feature-tag">智能推理</span>
              <span class="feature-tag">多领域</span>
              <span class="feature-tag">深度分析</span>
            </div>
            <div class="app-cta">
              <span class="cta-text">开始对话</span>
              <span class="cta-arrow">→</span>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 技术特色区域 -->
    <section class="features-section">
      <div class="container">
        <h2 class="section-title text-center">
          <span class="text-gradient">技术</span>
          <span class="title-accent">优势</span>
        </h2>
        <div class="features-grid">
          <div class="feature-card card">
            <div class="feature-icon">⚡</div>
            <h3 class="feature-title">实时响应</h3>
            <p class="feature-description">
              基于SSE技术的流式响应，AI回复实时显示，体验流畅自然
            </p>
          </div>
          <div class="feature-card card">
            <div class="feature-icon">🔒</div>
            <h3 class="feature-title">安全可靠</h3>
            <p class="feature-description">
              企业级安全防护，数据加密传输，保护用户隐私安全
            </p>
          </div>
          <div class="feature-card card">
            <div class="feature-icon">🎯</div>
            <h3 class="feature-title">精准理解</h3>
            <p class="feature-description">
              先进的自然语言处理技术，准确理解用户意图，提供精准回答
            </p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script setup>
// 无需额外逻辑
</script>

<style scoped>
.home-container {
  min-height: 100vh;
}

/* 英雄区域 */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 浮动背景元素 */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  top: 40%;
  left: 20%;
  animation-delay: 2s;
}

.floating-element:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 3s;
}

.floating-element:nth-child(5) {
  top: 30%;
  left: 90%;
  animation-delay: 4s;
}

.floating-element:nth-child(6) {
  top: 70%;
  left: 30%;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

/* 应用展示区域 */
.apps-section {
  padding: 6rem 0;
  background: var(--card-bg);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 4rem;
  position: relative;
}

.title-accent {
  color: var(--accent-color);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.app-card {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.app-card:hover::before {
  left: 100%;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.app-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.app-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary-color);
  font-weight: 600;
}

.cta-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.app-card:hover .cta-arrow {
  transform: translateX(5px);
}

/* 技术特色区域 */
.features-section {
  padding: 6rem 0;
  background: var(--dark-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    min-height: 60vh;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
</style> 